<?php

/**
 * 首页
 * User: tsang
 * Date: 2017/9/14
 * Time: 20:11
 */

namespace app\mobile\controller;
use think\Controller;
use think\Db;

class Base extends Controller
{
    function __construct(){
        parent::__construct();

    	$is_mobile = is_mobile();

    	if(!$is_mobile){
    		$this->redirect('/pc/Index/index');
    	}

        $this->info_user = session('info_user');
        //每页条数
        $this->per_page = 10;

        $web_set_result = db('web_set')->field('logo,qr')->find();
        $this->assign('web_set_result', $web_set_result);

        $person = db('member')->where('id', session('info_user')['id'])->find();
        $this->assign('person', $person);
    }

}